export default [
  {
    path: "/course",
    component: () => import("@/views/course/index.vue"),
    meta: {
      title: "课程管理",
      icon: "Notebook",
      roles: ["viewCourse"],
    },
  },
  {
    path: "/student",
    component: () => import("@/views/student/index.vue"),
    meta: {
      title: "学员管理",
      icon: "User",
      roles: ["viewStudent"],
    }
  },
  {
    path: "/teacher",
    component: () => import("@/views/teacher/index.vue"),
    meta: {
      title: "教师管理",
      icon: "UserFilled",
      roles: ["viewTeacher"],
    },
  },

  {
    path: "/classroom",
    component: () => import("@/views/classroom/index.vue"),
    meta: {
      title: "教室管理",
      icon: "House",
      roles: ["viewClassroom"],
    }
  },
  {
    path: "/instrument",
    component: () => import("@/views/instrument/index.vue"),
    meta: {
      title: "乐器管理",
      icon: "Headset",
      roles: ["viewInstrument"],
    },
  },
  {
    path: "/activity",
    component: () => import("@/views/activity/index.vue"),
    meta: {
      title: "活动管理",
      icon: "Calendar",
      roles: ["viewActivity"],
    },
  },
  {
    path: "/honor",
    component: () => import("@/views/honor/index.vue"),
    meta: {
      title: "荣誉管理",
      icon: "Trophy",
      roles: ["viewHonor"],
    }
  },
  {
    path: "/experience",
    component: () => import("@/views/experience/index.vue"),
    meta: {
      title: "经历管理",
      icon: "WindPower",
      roles: ["viewExperience"],
    }
  },
  {
    path: "/statement",
    component: () => import("@/views/statement/index.vue"),
    meta: {
      title: "统计报表",
      icon: "TrendCharts",
      roles: ["viewSchedule"],
    }
  },
  {
    path: "/system",
    redirect: "/system/user",
    meta: {
      title: "系统管理",
      icon: "Setting",
      roles: ["viewRole", "viewUser"],
    },
    children: [{
      path: "/system/user",
      component: () => import("@/views/system/user/index.vue"),
      meta: {
        title: "用户",
        icon: "User",
        roles: ["viewUser"],
      },
    },{
      path: "/system/job",
      component: () => import("@/views/system/roles/index.vue"),
      meta: {
        title: "角色",
        icon: "SuitcaseLine",
        roles: ["viewRole"],
      },
    }],
  },
];
